﻿using System;
using System.Collections.Generic;
using Shuriken.Base; 

namespace Shuriken.Core.Store
{
    public class QNTextSubject : ITextSubject 
    {
        private string m_text;
        private static string m_SystemImageIndex;
        private string m_Icon; 

        #region ITextSubject Members

        static QNTextSubject()
        {
            int index = Shell.ShellManager.Instance.GetImageIndexForExtension(".txt");
            m_SystemImageIndex = ImageStore.AddSystemImageListIndex(index);
        }

        public QNTextSubject()
        {
            m_Icon = m_SystemImageIndex;
        }

        public string Text
        {
            get
            {
                return m_text;
            }
            set
            {
                m_text = value;
            }
        }

        #endregion

        #region ISubject Members

        public List<IAction> GetListOfActions()
        {
            return new List<IAction>(); 
        }

        #endregion

        #region IObject Members

        public string Name
        {
            get { return Text; }
        }

        public string Description
        {
            get { return string.Empty; }
        }

        public string Icon
        {
            get
            {
                return m_Icon;
            }
            set
            {
                m_Icon = value;
            }
        }

        #endregion
    }
}
